package com.baiye.template.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

import java.util.Date;

/**
 * @author GUOZHIPENG
 * @version 1.0
 * @date 2021/9/7 17:12
 */
@Data
public class Role implements GrantedAuthority {
    private Integer id;
    private String name;
    private String desc;
    private Date creatTime;

    private Boolean owned;

    @JsonIgnore
    @Override
    public String getAuthority() {
        return name;
    }

}
